package com.ikas.ai.server.module.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ikas.ai.model.Entity;

import javax.validation.constraints.NotEmpty;

@TableName(value = "t_cfg_dict")
public class Dict extends Entity {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotEmpty(message = "配置字典类型不能为空")
    private String type;
    @NotEmpty(message = "配置字典编码不能为空")
    private String code;
    @NotEmpty(message = "配置字典名称不能为空")
    private String name;
    //字典说明
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
